package com.wsjc.manager.service.pc.employers.Impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.wsjc.manager.dao.employers.impl.WjEmployersDaoImpl;
import com.wsjc.manager.dao.user.impl.WjUserDaoImpl;
import com.wsjc.manager.entity.WjEmployers;
import com.wsjc.manager.entity.WjUser;
import com.wsjc.manager.service.pc.employers.PcService;


public class PcSerivceImpl implements PcService{
	
	@Autowired
	private WjEmployersDaoImpl  wjEmployersDaoImpl ;
	
	@Autowired
	private WjUserDaoImpl wjUserDaoImpl;
	
	//private Logger logger = LoggerFactory.getLogger(PcSerivceImpl.class);
	
	
	@Override
	public WjEmployers findEmployersById(String PartID) {
		return wjEmployersDaoImpl.getById(PartID);
	}

	@Override
	public List<WjUser> findUserByEmployersID(String WjEmployersID) {
		Map<String,Object> map = new HashMap<>();
		map.put("id", WjEmployersID);
		return wjUserDaoImpl.listBy(map);
	}

}
